import request from '@/utils/request';

export async function generate(payload) {
  return request(`/back/system/generator/generate`, {
    method: 'POST',
    body: payload
  });
}

export async function clearAll() {
  return request('/back/system/cache/clearAll');
}